<?php
// $Id: conf.php,v 1.13.3 2004/09/09 18:51:00 yoshis Exp $
if(
	!defined('XOOPS_ROOT_PATH') ||
	!defined('XOOPS_CACHE_PATH') ||
	!is_dir(XOOPS_CACHE_PATH)
){
	exit();
}
if(!empty($xoopsConfig)){
	if(file_exists(XOOPS_ROOT_PATH.'/modules/popnupblog/language/'.$xoopsConfig['language'].'/main.php')){
		require_once XOOPS_ROOT_PATH.'/modules/popnupblog/language/'.$xoopsConfig['language'].'/main.php';
	}
}
// You shouldn't have to change any of these
popnupblog_init();
function popnupblog_init(){
	global $xoopsDB;
	define('POPNUPBLOG_VERSION', '2.1 Redwood-803');
	define('POPNUPBLOG_DIR_NAME', 'popnupblog');
	define('POPNUPBLOG_DIR', XOOPS_URL.'/modules/'.POPNUPBLOG_DIR_NAME.'/');
	define('POPNUPBLOG_BLOCK_LIST_NUM',10);
	define('POPNUPBLOG_VIEW_LIST_NUM',10);
	define('POPNUPBLOG_MAIN_LIST_NUM',50);
	define('POPNUPBLOG_TABLE_BLOG', $xoopsDB->prefix('popnupblog'));
	define('POPNUPBLOG_TABLE_INFO', $xoopsDB->prefix('popnupblog_info'));
	define('POPNUPBLOG_TABLE_COMMENT', $xoopsDB->prefix('popnupblog_comment'));
	define('POPNUPBLOG_TABLE_APPL', $xoopsDB->prefix('popnupblog_application'));
	define('POPNUPBLOG_TABLE_TRACKBACK', $xoopsDB->prefix('popnupblog_trackback'));
	define('POPNUPBLOG_DEBUG_OUT', 1);
	//      Modified by hoshiyan@hoshiba-farm.com 2004.8.4
	define('POPNUPBLOG_TABLE_EMAIL_ALIAS', $xoopsDB->prefix('popnupblog_emailalias'));
	define('POPNUPBLOG_TABLE_CATEGORIES', $xoopsDB->prefix('popnupblog_categories'));
	// option for cgi user (modifed by Yoshi.S)
	define('POPNUPBLOG_TRACKBACK_URI_SEP', '/');
	define('POPNUPBLOG_REQUEST_URI_SEP', '?param=');
	//
	// After v1.46 yoshis 2004.9.9
	//
	global $weekday, $d_month;
	// the weekdays and the months.. translate them if necessary
	$weekday[0]=_MD_CAL_SUNDAY;
	$weekday[1]=_MD_CAL_MONDAY;
	$weekday[2]=_MD_CAL_TUESDAY;
	$weekday[3]=_MD_CAL_WEDNESDAY;
	$weekday[4]=_MD_CAL_THURSDAY;
	$weekday[5]=_MD_CAL_FRIDAY;
	$weekday[6]=_MD_CAL_SATURDAY;
	// the months, translate them if necessary - note: this isn't active everywhere yet
	$d_month['01']=_MD_CAL_JANUARY;
	$d_month['02']=_MD_CAL_FEBRUARY;
	$d_month['03']=_MD_CAL_MARCH;
	$d_month['04']=_MD_CAL_APRIL;
	$d_month['05']=_MD_CAL_MAY;
	$d_month['06']=_MD_CAL_JUNE;
	$d_month['07']=_MD_CAL_JULY;
	$d_month['08']=_MD_CAL_AUGUST;
	$d_month['09']=_MD_CAL_SEPTEMBER;
	$d_month['10']=_MD_CAL_OCTOBER;
	$d_month['11']=_MD_CAL_NOVEMBER;
	$d_month['12']=_MD_CAL_DECEMBER;
    if (!defined('STATUS_CANREAD_MODERATOR')) {
        define('STATUS_CANREAD_MODERATOR',  0x01);
        define('STATUS_CANREAD_MEMBER',  0x02);
        define('STATUS_CANREAD_GUEST',  0x03);
        define('STATUS_CANCOMMENT_MODERATOR',  0x04);
        define('STATUS_CANCOMMENT_MEMBER',  0x08);
        define('STATUS_CANCOMMENT_GUEST',  0x0c);
        define('STATUS_CANVOTE_MODERATOR',  0x10);
        define('STATUS_CANVOTE_MEMBER',  0x20);
        define('STATUS_CANVOTE_GUEST',  0x30);
    }
	
}
?>
